package com.universalInterface.lims_interface.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.universalInterface.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * TestChannel：实时通道信息表（初始标准表），用于生成表结构
 * </p>
 *
 * @author Lx
 * @since 2023-12-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("test_channel")
@Schema(name = "TestChannel", description = "TestChannel：实时通道信息表（初始标准表），用于生成表结构")
public class TestChannel extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 7554471222755230407L;

	@Schema(description = "实时通道信息id")
	@TableField(value = "test_ch_guid")
	private Long testChGuid;

	@Schema(description = "实验室id")
	@TableField(value = "lab_guid")
	private Long labGuid;

	@Schema(description = "通道名称，为设备定义的名称，该名称在实验测试过程中不能修改")
	@TableField(value = "ch_name")
	private String chName;

	@Schema(description = "通道名称英文名")
	@TableField(value = "en_name")
	private String enName;

	@Schema(description = "自定义名称，测试试验过程中可定义的名称")
	@TableField(value = "custom_ch")
	private String customCh;

	@Schema(description = "通道曲线的初始颜色定义，使用整数进行表示")
	@TableField(value = "color")
	private Integer color;

	@Schema(description = "通道值的单位文本")
	@TableField(value = "unit")
	private String unit;

	@Schema(description = "通道值的小数点位数")
	@TableField(value = "format")
	private Integer format;

	@Schema(description = "是否显示出来，1位显示，0位不显示")
	@TableField(value = "shows")
	private Integer shows;

	@Schema(description = "通道对应的Y轴序号")
	@TableField(value = "y_axis_id")
	private Integer yAxisId;

	@Schema(description = "通道对应的Y轴名称")
	@TableField(value = "y_axis_name")
	private String yAxisName;

}
